Fix VM.get_power_state API. On the xend side an integer representation of the power...
authorjfehlig@jfehlig2.provo.novell.com <jfehlig@jfehlig2.provo.novell.com>
Thu, 14 Dec 2006 01:06:48 +0000 (18:06 -0700)
committerjfehlig@jfehlig2.provo.novell.com <jfehlig@jfehlig2.provo.novell.com>
Thu, 14 Dec 2006 01:06:48 +0000 (18:06 -0700)
commit160ed4756b5c4be2b144f30b0e6ad221494cfdce
tree85d96d3374997b79255e85a4055af207c63e917b
parentd2cd19a8b26955f53e1e0245e6681db55aa5de97
Fix VM.get_power_state API.  On the xend side an integer representation of the power state was being returned instead of a string representation as specified by the XenAPI spec.

On the c-bindings side the marshalling code converts the string representation to an enum value.  A subsequent attempt to convert the enum from a string to an enum was causing a seg fault.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/libxen/include/xen_internal.h
tools/libxen/src/xen_vm.c
tools/python/xen/xend/XendAPI.py